package router

import (
	"gitee.com/DonHz/electronic-business-systems/mxshop-api/user_web/api"
	"gitee.com/DonHz/electronic-business-systems/mxshop-api/user_web/middlewares"
	"github.com/gin-gonic/gin"
)

func InitUserRouter(Router *gin.RouterGroup) {
	UserRouter := Router.Group("/user")
	{
		UserRouter.GET("/list", middlewares.JWTAuth(), middlewares.IsAdminAuth(), api.GetUserList)
		UserRouter.POST("/login_pwd", api.LoginPassword)
		UserRouter.POST("/register", api.Register)
	}
}
